/**
 * 
 */
package org.skyeye.modeling.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Vivian
 * @date 2017-6-27
 */
public class DevBean {
	
	private MachBean parent;

	public MachBean getParent() {
		return parent;
	}

	public void setParent(MachBean parent) {
		this.parent = parent;
	}

	private String devname;
	
	public String getDevname() {
		return devname;
	}

	public void setDevname(String devname) {
		this.devname = devname;
	}

	private List<RegBean> regBeans = new ArrayList<RegBean>();


	public List<RegBean> getRegBeans() {
		return regBeans;
	}

	public void setRegBeans(List<RegBean> regBeans) {
		this.regBeans = regBeans;
	}
	
	
	public void addRegBeans(RegBean r) {
		this.regBeans.add(r);
	}
	
	public void removeRegBeans(RegBean r) {
		this.regBeans.remove(r);

	}
	
	public void addAllRegBeans(List<RegBean> regBeans) {
		this.regBeans.addAll(regBeans);
		
	}
	
}
